<?php
/**
 * OaEmpMsg数据模型
 */
class OaEmpMsgTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_emp_msg',
			'title' => '员工收到消息',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => '',
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [ ];
	
	// 字段定义
	public $fields = [
			'appid' => [
					'title' => 'appid',
					'type' => 'string',
					'field' => 'varchar(100) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'emp_id' => [
					'title' => '员工ID',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'type' => [
					'title' => '消息类型',
					'type' => 'num',
					'field' => 'int(4) NOT NULL',
					'extra' => '0:公告
1:会议
2:督办
3:报销审批
4:加班审批
5:休假审批
6:食堂通知
7:小卖部通知
8:其它',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'content' => [
					'title' => '内容',
					'type' => 'string',
					'field' => 'varchar(512) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'reply' => [
					'title' => '回复状态',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'value' => 0,
					'remark' => '0: 没有回复， 1: 确认参会； 2: 拒绝参加',
					'is_show' => 1,
					'is_must' => 0
			],
			'noticeid' => [
					'title' => 'NoticeID',
					'type' => 'num',
					'field' => 'int(10) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'time' => [
					'title' => '消息时间',
					'type' => 'datetime',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'is_read' => [
					'title' => '已读',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'is_del' => [
					'title' => '删除',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'wx_formid' => [
					'title' => 'Formid',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'remark' => '微信模板消息 参数 Form_id',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'comment' => [
					'title' => '回复内容',
					'type' => 'string',
					'field' => 'varchar(512) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'is_sender' => [
					'title' => '是否发送者',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			]
	];
}	